<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/admin/assets/js/util.js"></script>
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery.js'/>"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
$(document).ready(function() {
<c:if test="${not empty requestScope.message}">
$("#infoSpan").html("<img src='<c:url value='/admin/assets/images/flag.gif'/>'><font color='#C00000'><c:out value='${requestScope.message}' escapeXml='false'/></font>");
</c:if>

});

// ]]>
</script>
<script language="javascript">
function check()
{
	
	var email = document.getElementById("email");
	if(email.value.trim()!="")
	{
		if(!IsEmail(email.value.trim()))
		{
			OS.showWarming("errorTd","请检查邮件格式是否正确！");
			email.focus();
			return false;
		}
		else
		{
			OS.hideWarming("errorTd");
		}
	}
	
}

window.onload = function()
{
	
}
</script>
</head>
<body class="main">
<form method="post" action="<c:url value='/admin/system/admin-edit.ac'/>" name="adminEditForm" id="adminEditForm" onSubmit="check()" >
<input type="hidden" id="id" name="id" value="${requestScope.admin.id}"/>
<input type="hidden" id="method" name="method" value="edit"/>
<table class="container" cellpadding="0" cellspacing="0">
<tr><td>
<table class="dialog" align="center" cellpadding="0" cellspacing="0" width="450">
<tr><td>
<table class="header" cellpadding="0" cellspacing="0">
<tr>
<td>管理员编辑</td>
</tr>
</table>
</td></tr>
<tr>
  <td class="body">
<table class="body" cellpadding="0" cellspacing="0">
<tr>
  <td colspan="2" align="center" id="errorTd">&nbsp;<span id="infoSpan" class="infoSpan">&nbsp;</span></td>
  <tr>
  <td width="30%" align="right"><strong>帐户：</strong></td>
  <td><input type="text" name="userName" id="userName" size="31" maxlength="31" value="${requestScope.admin.username}" disabled>
</tr>
<tr>
<td align="right"><b>手机号码：</b></td>
<td><input type="text" name="mobile" id="mobile" size="31" maxlength="31" value="${requestScope.admin.mobile}">
</tr>
<tr>
  <td align="right"><strong>电子邮件：</strong></td>
  <td><input type="text" name="email" id="email" size="31" maxlength="31" value="${requestScope.admin.email}">  
</tr>
<tr>
  <td>&nbsp;</td>
  <td>
</tr>
</table>
</td></tr>
<tr><td>
<table class="footer" cellpadding="0" cellspacing="0">
<tr><td>
<input class="button" type="submit" value="确定" >
&nbsp;&nbsp;<input class="button" type="button" value="返回" onClick="document.location='javascript:history.go(-1)'">
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</form>

</body>
</html>
